var vm = new Vue({
	el:'#app',
	data:{
		account:"",
		prop: ""
	},
	 components: {
        "header-com" : headerCom,
        "count-com" : countCom,
		"popup-com" : popupCom
	},
    methods:{
    	modify:function(){
    		this.account = ""
    	},
    	cancel:function(){
    		window.location.href = "/business";
    	},
    	Exit:function(){
			window.location.href="/tokens/logout"
		},
		Submission:function(){
    		const account = Qs.stringify({
				"amount": this.account
			})
            var r = /^[1-9]\d*00$/;
            if(this.account == ""){
				this.prop = "请输入转账金额";
            }else if(!r.test(this.account)) {
				this.prop = "请输入100的整数";
				this.account = "";
			}else if(this.account > 50000) {
				this.prop = "单次转账最高5000元,请重新输入转账金额"
			}
			else{
	            axios.post("./money",account)
	            .then(function(res) {
	               window.location.href = "./confirm";
	            })
	            .catch(function(error) {
	                alert(error);
	            })
            }
    	
    	}
    }
})